package com.ruoyi.system.domain.project.social;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 社会服务对象 social_server
 * 
 * @author ruoyi
 * @date 2025-10-08
 */
public class SocialServer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 社会服务事项 */
    @Excel(name = "社会服务事项")
    private String serverName;

    /** 服务时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serverTime;

    /** 服务结束时间 */
    private Date serverEnd;

    /** 服务对象 */
    @Excel(name = "服务对象")
    private String serverObject;

    /** 获奖者 */
    @Excel(name = "获奖者")
    private String winner;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String attachmentUrl;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdDate;

    /** 记录更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedDate;

    /** 获奖者id */
    @Excel(name = "获奖者id")
    private Long winnerId;

    /** 社会影响 */
    @Excel(name = "社会影响")
    private String affect;

    /** 当前角色 */
    private  String currentRole;
    /** 部门id */
    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setServerName(String serverName) 
    {
        this.serverName = serverName;
    }

    public String getServerName() 
    {
        return serverName;
    }

    public void setServerTime(Date serverTime) 
    {
        this.serverTime = serverTime;
    }

    public Date getServerTime() 
    {
        return serverTime;
    }

    public void setServerObject(String serverObject) 
    {
        this.serverObject = serverObject;
    }

    public String getServerObject() 
    {
        return serverObject;
    }

    public void setWinner(String winner) 
    {
        this.winner = winner;
    }

    public String getWinner() 
    {
        return winner;
    }

    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }

    public void setCreatedDate(Date createdDate) 
    {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate() 
    {
        return createdDate;
    }

    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }

    public void setWinnerId(Long winnerId) 
    {
        this.winnerId = winnerId;
    }

    public Long getWinnerId() 
    {
        return winnerId;
    }

    public void setAffect(String affect) 
    {
        this.affect = affect;
    }

    public String getAffect() 
    {
        return affect;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serverName", getServerName())
            .append("serverTime", getServerTime())
            .append("serverObject", getServerObject())
            .append("winner", getWinner())
            .append("attachmentUrl", getAttachmentUrl())
            .append("createdDate", getCreatedDate())
            .append("updatedDate", getUpdatedDate())
            .append("winnerId", getWinnerId())
            .append("affect", getAffect())
            .toString();
    }

    public String getCurrentRole() {
        return currentRole;
    }

    public void setCurrentRole(String currentRole) {
        this.currentRole = currentRole;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Date getServerEnd() {
        return serverEnd;
    }

    public void setServerEnd(Date serverEnd) {
        this.serverEnd = serverEnd;
    }
}
